/**
 * 
 */
package com.sci.web.action.eninfomanager;

import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.dao.EnterpriseInfoManageDao;

/**
 * @author BaiFuyou
 * @date: Oct 30, 2011 9:40:17 PM
 * 
 * 获取用户
 * 
 * 企业用户管理
 */
public class GetUserEnterpriseAction extends BaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7257960622369509699L;
	@Resource
	private EnterpriseInfoManageDao enterpriseInfoManageDao;
	/**
	 * 城市ID
	 */
	private int city_id;

	/**
	 * @return the city_id
	 */
	public int getCity_id() {
		return city_id;
	}

	/**
	 * @param city_id
	 *            the city_id to set
	 */
	public void setCity_id(int city_id) {
		this.city_id = city_id;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		super.setContentType(super.JSON);
		System.out.println("白福友===="+city_id);
		super.outPrint(super.getJSONArrayString(enterpriseInfoManageDao.getUser_Enterprise(city_id)));
		return "json";
	}
}
